package com.liangchen.asstability;

import android.content.Context;

import com.liangchen.astools.utils.AsLog;

public class AsStabilityManager {
    private final String TAG = "AsStabilityManager";
    Context mContext;
    private boolean mTrunOnJE = true;
    private boolean mTrunOnNE = true;
    private boolean mTrunOnANR = true;

    private AsStabilityManager() {
    }

    public static class InnerHolder {
        public static final AsStabilityManager instance = new AsStabilityManager();

    }

    public static AsStabilityManager getInstance() {
        return AsStabilityManager.InnerHolder.instance;
    }

    public void init(Context context){
        mContext = context;
        if (mTrunOnJE){
            JEMonitor.getInstance().init();
        }
        AsLog.i(TAG,"AsStability init finished.");
    }
}
